const mongoose = require('mongoose');
mongoose.connect('mongodb://localhost:27017/school', {useNewUrlParser: true},function (err, docs) {
    if(err) {
        console.log('连接失败')
        return
    }
    console.log('connect success!')
});

module.exports = mongoose
